home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / SciAn / src / ScianStyle.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  20KB  |  488 lines

  1. /*ScianStyle.h
  2.   Eric Pepke
  3.   25 March 1991
  4.   Numbers for common SciAn style
  5. */
  6.  
  7. #define MAJORBORDER    20        /*Major border around and within windows*/
  8. #define MINORBORDER    10        /*Minor border within windows*/
  9. #define TINYBORDER    5        /*Tiny border*/
  10. #define CORRALBORDER    10        /*Border between an icon corral and window*/
  11. #define SLIDERWIDTH    40        /*Width of a slider here*/
  12. #define NARROWSLIDERWIDTH 30        /*Narrow slider*/
  13. #define CHECKBOXHEIGHT    22        /*Height of a check box*/
  14. #define CHECKBOXSPACING    5        /*Vertical spacing between boxes*/
  15. #define TITLEBOXSPACING 6        /*Spacing between title boxes*/
  16. #define TITLEBOXTOP    10        /*Top of a title box*/
  17. #define BBCHECKBOXWIDTH    140        /*Width of a check box in BB controls*/
  18. #define TEXTBOXHEIGHT    18        /*Height of a text box*/
  19. #define EDITBOXHEIGHT    26        /*Height of an editable text box (1 line)*/
  20. #define EDITBOXDOWN    (-3)        /*Amount text in an edit box is down*/
  21. #define TEXTBOXSEP    6        /*Separation between a text box and object*/
  22. #define COLORWHEELWIDTH    80        /*Width of an HS control*/
  23. #define SWITCHWIDTH    70        /*Width of a switch*/
  24. #define SSWITCHWIDTH    30        /*Width of a single switch*/
  25. #define XYCONTROLWIDTH    90        /*Width of an XY control*/
  26. #define ICONXYSEP    20        /*Separation of an icon from XY control*/
  27. #define VWINHEIGHT    408        /*Height of a vis window*/
  28. #define VWINPANELWIDTH    252        /*Width of a vis window panel*/
  29. #define VWTOOLBORDER    4
  30. #define VWINTOOLPWIDTH    (2 * VWTOOLBORDER + SMALLICONBUTTONSIZE)
  31. #define VWINWIDTH    (VWINHEIGHT + VWINPANELWIDTH + VWINTOOLPWIDTH)
  32. #define VWTOOLBORDER    4
  33.                     /*Width of a vis window*/
  34.                     /*Width of a vis window tool panel*/
  35. #define BARWIDTH    20        /*Width of a scroll bar*/
  36. #define SLOP        30l        /*Slop around a, well anything*/
  37. #define CORRALBARBORDER    4        /*Border on a scrollbar in a corral*/
  38. #define OS_CONTROLWIDTH 100        /*Width of an ortho slicer cotnrol group*/
  39.  
  40. #define TRACKEDGE    3        /*Edge around a track*/
  41.  
  42. #define SEQWINWIDTH    400
  43. #define SEQWINHEIGHT    250
  44. #define PCWIDTH        90        /*Nominal width of a perspective control*/
  45. #define CLWINWIDTH    450        /*Width of a clock window*/
  46. #define CLWINHEIGHT    (3 * MAJORBORDER + CLTCHEIGHT + TITLEBOXTOP + 4 * MINORBORDER + EDITBOXHEIGHT + 3 * CHECKBOXHEIGHT + 2 * CHECKBOXSPACING + ICONBUTTONSIZE) 
  47.                     /*Height of a clock window*/
  48. #define CLTCHEIGHT    200        /*Height of a time control in clock window*/
  49. #define DSWINWIDTH    (360)        /*Width of a datasets window*/
  50. #define DSWINHEIGHT    400        /*Height of a datasets window*/
  51. #define MODWINWIDTH    DSWINWIDTH    /*Width of a modify window*/
  52. #define MODWINHEIGHT    DSWINHEIGHT    /*Height of a modify window*/
  53. #define FRWINWIDTH    350        /*Width of a file reader window*/
  54. #define FRWINHEIGHT    360        /*Height of a file reader window*/
  55. #define RDWINWIDTH    350        /*Width of a recorder drivers window*/
  56. #define RDWINHEIGHT    360        /*Height of a recorder drivers window*/
  57. #define VAWINWIDTH    350        /*Visualize As Window Width*/
  58. #define VAWINHEIGHT    350        /*Visualize As Window Height*/
  59. #define ICONBUTTONSIZE    50        /*Size of icon buttons*/
  60. #define SMALLICONBUTTONSIZE    46    /*Size of a small icon button*/
  61. #define ICONBUTTONSPACE    10        /*Spacing between icon buttons*/
  62.  
  63. #define ONECORRALWIDTH    138        /*Width of a corral for one object, was 108*/
  64. #define ONECORRALHEIGHT    90        /*Height of a corral for one object*/
  65.  
  66. /*Control panel*/
  67. #define CWINCORRALWIDTH    130        /*Width of a corral in a CWIN*/
  68. #define CWINWIDTH    (448 + CWINCORRALWIDTH)        /*Width of a control window*/
  69. #define CWINHEIGHT    340        /*Height of a control window*/
  70. #define CWINCCWIDTH    (CWINCORRALWIDTH - BARWIDTH - 10)
  71.                     /*Width of contents of corral*/
  72. #define CWINICONBUTHEIGHT 62
  73. #define SMCWINICONBUTHEIGHT CWINICONBUTHEIGHT
  74.  
  75. /*Small control panel*/
  76. #define SMCWINCORRALWIDTH    130    /*Width of a corral in a small control window*/
  77. #define SMCWINHEIGHT    293        /*Height of a small control window*/
  78. #define SMCWINWIDTH    (395 + SMCWINCORRALWIDTH)    /*Width of a small control window*/
  79. #define SMCWINCCWIDTH    (SMCWINCORRALWIDTH - BARWIDTH - 10)
  80.  
  81. #define VAWINICONBUTWIDTH 80
  82.  
  83. #define FCWINWIDTH    (CWINWIDTH - CWINCORRALWIDTH - MINORBORDER)
  84.                     /*Width of a filter control window*/
  85. #define FCWINHEIGHT    (CWINHEIGHT)
  86.  
  87. #define DCWINWIDTH    450        /*Width of a dataset controls window*/
  88. #define DCWINHEIGHT    360        /*Height of a dataset controls window*/
  89. #define DCINFOHEIGHT    80        /*Height of the info string*/
  90. #if 0
  91. #define DCFONT         (demoP ? "Helvetica-Bold" : "Helvetica")
  92. #else
  93. #define DCFONT        (demoP ? UIBOLDLARGEFONT : UILARGEFONT)
  94. #endif
  95.                     /*Font for info*/
  96. #define DCFONTSIZE    14        /*Size of text for info*/
  97.  
  98. /*Socket control window*/
  99. #define SCWINWIDTH    450        /*Width of a socket control window*/
  100. #define SCWINHEIGHT    400        /*Height of a socket control window*/
  101. #define SCFONT         (demoP ? "Helvetica-Bold" : "Helvetica")
  102.                     /*Font for info*/
  103. #define SCFONTSIZE    14        /*Size of text for info*/
  104. #define SCTEXTHEIGHT    70        /*Height of text box*/
  105. #define SCGRAPHICWIDTH    150        /*Width of the graphic*/
  106.  
  107. /*Process control window*/
  108. #define PXWINWIDTH    (360)        /*Width of a process control window*/
  109. #define PXWINHEIGHT    400        /*Height of a process control window*/
  110.  
  111.  
  112. /*Ortho Slicer dimensions*/
  113. #define OSDIMWIDTH    150        /*Obselete for control window*/
  114. #define OSWINWIDTH    (4 * MAJORBORDER + 2 * ONECORRALWIDTH + 3 * OSDIMWIDTH)
  115.                     /*Width of an ortho slicer window*/
  116. #define OSWINHEIGHT    350        /*Height of an ortho slicer window*/
  117. #define OSAXISWIDTH    120        /*Width of axis button group*/    
  118.  
  119. #define PCBARHEIGHT    250        /*Height of a color bar*/
  120. #define PCWINWIDTH    740        /*Width of a palette window*/
  121. #define PCWINHEIGHT    MAJORBORDER * 2 + PCBARUP + PCBARHEIGHT
  122.                     /*Height of a palette control window*/
  123. #define PCBARUP        (EDITBOXHEIGHT + MINORBORDER)
  124. #define PCWINLSIDE    (3 * MINORBORDER + 2 * VWTOOLBORDER + COLORWHEELWIDTH + SLIDERWIDTH + 20)
  125. #define PCTEXTBOXLEN    100        /*Length of a text box*/
  126.  
  127. /*JEL textbox parameters */
  128. #if 0
  129. #define DEFFONT (demoP ? "Helvetica-Bold" : "Helvetica")
  130. #else
  131. #define DEFFONT (demoP ? UIBOLDNORMALFONT : UINORMALFONT)
  132. #endif
  133. #define DEFALIGN LEFTALIGN
  134. #define DEFTEXTSIZE 12
  135. #define DEFLINESPACE 6
  136. #define TEXTCURSORCOLOR UIBLUE
  137. #define TEXTSELECTCOLOR    UIWHITE
  138. #define TEXTMARGIN    6
  139.  
  140. /*JEL alert window parameters */
  141. #define ASKWIDTH    440
  142. #define ASKHEIGHT    230
  143. #define ALERTWIDTH    480
  144. #define ALERTHEIGHT    260
  145. #define ALERTBORDER    20
  146. #define TOPMARGIN    (30 + ALERTBORDER)
  147. #define SIDEMARGIN    (40 + ALERTBORDER)
  148. #define BOTMARGIN    (30 + ALERTBORDER)
  149. #define EDGE 3                /* edge size in everything */
  150. #define PITBOXHEIGHT    (TEXTBOXHEIGHT + TEXTMARGIN * 2)
  151.  
  152. #define UIALERTBG UIBACKGROUND
  153.  
  154. #if 0
  155. #define PROMPTTEXTFONT    "Helvetica-Bold"
  156. #else
  157. #define PROMPTTEXTFONT    UIBOLDLARGEFONT
  158. #endif
  159. #define PROMPTTEXTSIZE    14
  160. #define PROMPTTEXTCOLOR    UITEXT
  161. #define PROMPTHT    4*(PROMPTTEXTSIZE + DEFLINESPACE)
  162.  
  163. #define EDTEXTHT    28
  164.  
  165.  
  166. #define GAP        12
  167. #define SMALLGAP    8
  168. #define INTERSPACE    24
  169.  
  170. #define OKBTNWID    70
  171. #define BUTTONHEIGHT    30        /*Default height for a button*/
  172. #define SHORTBUTTONHEIGHT 26
  173. #define OKBTNHT        BUTTONHEIGHT
  174.  
  175. #define CMDBUTTONWIDTH  90        /*Default width of a command button*/
  176.  
  177. #define SCALESLOP    28        /*Slop for scale of a slider*/
  178. #define BIGSCALESLOP    40
  179.  
  180. #define LWINWIDTH    220        /*Width of a lights window*/
  181. #define LWINHEIGHT    140        /*Height of a lights window*/
  182.  
  183. extern real xGrid, yGrid, xMid, yMid;
  184. #define NGRIDSTEPS    25
  185. #define GRIDX(f)   (((long)((((f - xMid + xGrid * 4 * NGRIDSTEPS) + xGrid / 2)) / (xGrid))) * xGrid + xMid - xGrid * 4 * NGRIDSTEPS)
  186. #define GRIDY(f)   (((long)((((f - yMid + yGrid * 4 * NGRIDSTEPS) + yGrid / 2)) / (yGrid))) * yGrid + yMid - yGrid * 4 * NGRIDSTEPS)
  187. #define DGX(f)   (((long)((((f + xGrid * 4 * NGRIDSTEPS) + xGrid / 2)) / (xGrid))) * xGrid - xGrid * 4 * NGRIDSTEPS)
  188. #define DGY(f)   (((long)((((f + yGrid * 4 * NGRIDSTEPS) + yGrid / 2)) / (yGrid))) * yGrid - yGrid * 4 * NGRIDSTEPS)
  189.  
  190. #define GRIDSIZE    16
  191. #define GRIDDED(f)   (((long)(((f + GRIDSIZE / 2)) / (GRIDSIZE))) * GRIDSIZE)
  192.  
  193. /*Annotation defines*/
  194. #define ANNOTHEIGHT    48        /*Height of an annotation*/
  195. #define ANNOTWIDTH    192        /*Width of an annotation*/
  196. #define ANNOTFONT    "Helvetica-Bold"/*Default font of an annotation*/
  197. #define ANNOTFONTSIZE    18        /*Default font size of an annotation*/
  198. #define ANNOTMINX    GRIDSIZE * 4    /*Min x of annotation*/
  199. #define ANNOTMAXY    GRIDSIZE * 4    /*Max y of annotation*/
  200. #define ANNOTSTAGGER    GRIDSIZE * 2    /*Stagger*/
  201. #define ANNOTMAXSTAGGER GRIDSIZE * 16    /*Maximum stagger*/
  202.  
  203. /*** Text box defines ***/
  204. #define PLAIN        0
  205. #define TEXTBOXCOLOR    UIPINK
  206.  
  207.  
  208. /* parameters for incredibly fancy frame for moving and resizing text boxes */
  209. #define HANDLESIZE        12
  210. #define INSIDEFRAMEWEIGHT    4
  211. #define OUTSIDEFRAMEWEIGHT    2
  212. #define INSET ((HANDLESIZE - (2*OUTSIDEFRAMEWEIGHT + INSIDEFRAMEWEIGHT))/2)
  213. #define    OUTSIDEFRAMECOLOR    UIWHITE
  214. #define    INSIDEFRAMECOLOR    UIBLACK
  215.  
  216. /*Time or track control defines*/
  217. #define TCDSWIDTH    100        /*Default width of the dataset portion*/
  218. #define TCCURHEIGHT    25        /*Height of current time area*/
  219. #define TCCURWIDTH    14        /*Width of current time button*/
  220. #define TCGAP        4        /*Gap between portions*/
  221. #define TCTIMEHEIGHT    25        /*Height of time area*/
  222. #if 0
  223. #define TCFONT         (demoP ? "Helvetica-Bold" : "Helvetica")
  224. #else
  225. #define TCFONT        (demoP ? UIBOLDNORMALFONT : UINORMALFONT)
  226. #endif
  227.                     /*Font to use in time control*/
  228. #define TCFONTSIZE    12        /*Size of time control font*/
  229. #define TCTEXTBOFF    4        /*Bottom offset for text*/
  230. #define TCTEXTLOFF    5        /*Left offset for text*/
  231. #define TCSUBTEXTLOFF    25        /*Left offset for subtext*/
  232. #define TCCELLHEIGHT    20        /*Height of a cell*/
  233. #define TCLINEBOFF    9        /*Offset from bottom to line*/
  234. #define TCSTEPPIXELS    30        /*Desired number of pixels in a time step*/
  235. #define TCSAMPLESIZE    10        /*Size of a sample circle*/
  236. #define TCSAMPLECOLOR    UIBLUE        /*Color of a time sample*/
  237. #define TCTIMEPIXELS    60        /*Number of pixels betweeen times*/
  238. #if 0
  239. #define TCTIMEFONT     (demoP ? "Helvetica-Bold" : "Helvetica")
  240. #else
  241. #define TCTIMEFONT    (demoP ? UIBOLDNORMALFONT : UINORMALFONT)
  242. #endif
  243.                     /*Font in which to display time*/
  244. #define TCTIMEFONTSIZE    12        /*Size in which to display time*/
  245. #define TCTIMEBOFF    9        /*Bottom offset to up time display*/
  246. #define TCMAXTIMEWIDTH    100        /*Maximum number of pixels for time*/
  247. #define TCSCROLLBORDER    50        /*Border around time control for scroll*/
  248. #define TCMIDTICHEIGHT    5        /*Height of the middle tic*/
  249.  
  250. /*Help window defines*/
  251. #define HWWIDTH        700        /*Width of help window*/
  252. #define HWHEIGHT    400        /*Height of help window*/
  253. #define HWRADIOWIDTH    150        /*Width of radio buttons in help window*/
  254. #if 0
  255. #define HELPFONT     (demoP ? "Helvetica-Bold" : "Helvetica")
  256. #else
  257. #define HELPFONT    (demoP ? UIBOLDLARGEFONT : UILARGEFONT)
  258. #define HELPTITLEFONT    (demoP ? UIBOLDTITLEFONT : UITITLEFONT)
  259. #endif
  260.                     /*Font for help*/
  261. #define HELPSIZE    14        /*Size of text for help*/
  262. #define HELPTITLESIZE    18        /*Size of title for help*/
  263.  
  264. /*Contour control defines*/
  265. #define CCBUTTONLENGTH    185        /*Length of a color cell button*/
  266.  
  267. /*Isosurface defines*/
  268. #define ISOMISSLENGTH    160        /*Missing data*/            
  269.  
  270. #define SPACESPHERESIZE 0.45        /*Radius of a space rotation sphere*/
  271.  
  272. /*Button stuff*/
  273. #if 0
  274. #define BUTTONFONT     (demoP ? "Helvetica-Bold" : "Helvetica")
  275. #else
  276. #define BUTTONFONT    (demoP ? UIBOLDNORMALFONT : UINORMALFONT)
  277. #endif
  278. #define BUTTONFONTSIZE    12
  279. #define BUTTONSMALLSIZE    10
  280.  
  281. #if 0
  282. #define ICONTEXTFONT    (demoP ? "Helvetica-Bold" : "Helvetica")
  283. #endif
  284. #define ICONTEXTSIZE    12
  285. #define ICONTEXTSMALLSIZE 10
  286.  
  287. #define ICONNAMEFONT    (demoP ? UIBOLDNORMALFONT : UINORMALFONT)
  288. #define ICONSUBTITLEFONT (demoP ? UIBOLDSMALLFONT : UISMALLFONT)
  289.  
  290. /*Stuff for translucent and transparent controls*/
  291. #define TRANSPARENTWIDTH 150        /*Width of transparent control*/
  292.  
  293. /*Stuff for color bar control*/
  294. #define CBLBORDER    15        /*Left border around color bar*/
  295. #define CBLTEXTSPACE    25        /*Space for text on the left*/
  296. #define CBRBORDER    15        /*Right border around color bar*/
  297. #define CBBORDER    12        /*Bottom border*/
  298. #define CBTBORDER    15        /*Top border*/
  299. #define CBHGAP        6        /*Horizontal gap between bits of color bar*/
  300. #define CBVGAP        6        /*Vertical gap between bits of color bar*/
  301. #define CBBOXWIDTH    40        /*Width of a box*/
  302. #define CBCOMPHEIGHT    20        /*Height of a component*/
  303. #define CBTEXTSEP    20        /*Text separation*/
  304. #if 0
  305. #define CBTEXTFONT    (demoP ? "Helvetica-Bold" : "Helvetica")
  306. #else
  307. #define CBTEXTFONT    (demoP ? UIBOLDSMALLFONT : UISMALLFONT)
  308. #endif
  309. #define CBTEXTSIZE    10
  310. #define CBMAJORTICLEN    8        /*Length of major tics*/
  311. #define CBSTEPPIXELS    50        /*Desired number of pixels in a step*/
  312. #define CBTEXTUP    2        /*Pixels up to move text*/
  313. #if 0
  314. #define CBBIGTEXTFONT    (demoP ? "Helvetica-Bold" : "Helvetica")
  315. #else
  316. #define CBBIGTEXTFONT    (demoP ? UIBOLDNORMALFONT : UISMALLFONT)
  317. #endif
  318. #define CBBIGTEXTSIZE    12
  319. #define CBCOMPTEXTDOWN    3
  320. #define CBTEXTDOWN    10        /*Text down from top*/
  321. #define CBTEXTDOWNSEP    15        /*Separation of downward text*/
  322. #define CBHANDLESIZE    6        /*Size of a handle*/
  323.  
  324. /*Stuff for contour control*/
  325. #define CCLBORDER    20        /*Left border around contour control*/
  326. #define CCRBORDER    20        /*Right border around contour control*/
  327. #define CCTEXTFONT    (demoP ? "Helvetica-Bold" : "Helvetica")
  328. #define CCTEXTSIZE    10
  329. #define CCBORDER    12        /*Bottom border*/
  330. #define CCTBORDER    10        /*Top border*/
  331. #define CCTEXTUP    2        /*Pixels up to move text*/
  332. #define CCSTEPPIXELS    50        /*Desired number of pixels in a step*/
  333. #define CCBBORDER    10        /*Bottom border*/
  334. #define CCTEXTSEP    20        /*Text separation*/
  335. #define CCMAJORTICLEN    8        /*Length of major tics*/
  336. #define CCMARKBUTLEN    15        /*Length of CC mark button*/
  337. #define CCMARKBUTWIDTH    10        /*Width of CC mark button*/
  338.  
  339. /*Stuff for surface control panel*/
  340. #define SCDRAWBOXLENGTH    150        /*Length of a draw checkbox*/
  341.  
  342. /*Stuff for sniff window*/
  343. #define SNIFFWINHEIGHT    350
  344. #define SNIFFSHOWWIDTH    80
  345. #define SNIFFVALWIDTH    140
  346. #define SNIFFTYPEWIDTH    100
  347. #define SNIFFIDWIDTH    180
  348. #define SNIFFWINWIDTH    (SNIFFIDWIDTH + SNIFFTYPEWIDTH + SNIFFVALWIDTH + SNIFFSHOWWIDTH \
  349.               + 7 * MINORBORDER + BARWIDTH + 5)
  350.  
  351. /*Stuff for arrows controls*/
  352. #define ACNAMEWIDTH    140        /*Width of parameter name field*/
  353. #define ACTEXTWIDTH    100        /*Width of text pit*/
  354.  
  355. /*Stuff for file reader control panel*/
  356. #define FREXTTITLEWIDTH    150        /*Width of the string for default extension*/
  357. #define FREXTTEXTWIDTH    100        /*Width of the text box for default extension*/
  358. #define FRTIMEWIDTH    340        /*Width for time by name*/ 
  359. #define FROVERALLWIDTH    340        /*Overall width*/
  360.  
  361. /*Stuff for HDF reader*/
  362. #define HDFRADIOWIDTH    250        /*Width of radio buttons*/
  363. #define HDFVECTORWIDTH    250        /*Width of vector check box*/
  364.  
  365. /*Stuff for bounds controls*/
  366. #define SBFUNCTIONNAMEWIDTH    85    /*Width of function name*/
  367. #define SBFUNCTIONSPACING    6    /*Spacing between functions*/
  368.  
  369. /*Stuff for pictures*/
  370. #define PICSPHEREBOXWID    300        /*Width of a sphere box*/
  371. #define PICFRUSTABOXWID    300        /*Width of a frustum box*/
  372.  
  373. /*Stuff for color palette displays*/
  374. #define DSPPALETTEWIDTH    160        /*Width of a displayed palette*/
  375. #define DSPPALETTEHEIGHT 250        /*Height of a displayed palette*/
  376. #define DSPPALETTEFONT    "Helvetica-Bold"/*Default font of a displayed palette*/
  377. #define DSPPALETTESIZE    14        /*Default font size of a displayed palette*/
  378. #define DSPPALETTESTL    3        /*String to line margin*/
  379.  
  380. /*Stuff for color palette display window*/
  381. #define DSPPALWINWIDTH    (2 * MAJORBORDER + 2 * (4 * MAJORBORDER + SLIDERWIDTH + COLORWHEELWIDTH) + MINORBORDER)
  382. #define DSPPALWINHEIGHT    (2 * MAJORBORDER + (COLORWHEELWIDTH + TITLEBOXTOP + MAJORBORDER + 2 * MINORBORDER + TEXTBOXSEP + TEXTBOXHEIGHT + CHECKBOXHEIGHT) + 2 * (CHECKBOXHEIGHT + MINORBORDER))
  383.  
  384. /*Stuff for space panel control panel*/
  385. #define SPWINWIDTH    (2 * MAJORBORDER + (3 * MAJORBORDER + SLIDERWIDTH + COLORWHEELWIDTH))
  386. #define SPWINHEIGHT    (2 * MAJORBORDER + (COLORWHEELWIDTH + TEXTBOXSEP + TEXTBOXHEIGHT + 2 * CHECKBOXHEIGHT + TITLEBOXTOP + 4 * MINORBORDER))
  387.  
  388. /*Stuff for text box control panel window*/
  389. #define TBPALWINWIDTH    (2 * MAJORBORDER + 2 * (4 * MAJORBORDER + SLIDERWIDTH + COLORWHEELWIDTH) + MINORBORDER)
  390. #define TBPALWINHEIGHT    (2 * MAJORBORDER + (COLORWHEELWIDTH + TITLEBOXTOP + MAJORBORDER + 2 * MINORBORDER + TEXTBOXSEP + TEXTBOXHEIGHT + CHECKBOXHEIGHT))
  391.  
  392. /*Stuff for clock display control panel window*/
  393. #define CDWINWIDTH    (2 * MINORBORDER + 2 * (2 * MINORBORDER + 2 * MAJORBORDER + SLIDERWIDTH + COLORWHEELWIDTH) + MINORBORDER)
  394. #define CDWINHEIGHT    (2 * MINORBORDER + (COLORWHEELWIDTH + TITLEBOXTOP + MINORBORDER + 2 * MINORBORDER + TEXTBOXSEP + TEXTBOXHEIGHT + CHECKBOXHEIGHT) + MAJORBORDER + EDITBOXHEIGHT)
  395. #define CDFORMATLABELWIDTH    70
  396.  
  397. /*Stuff for line control panel window*/
  398. #define LCWINWIDTH    (2 * MINORBORDER + 2 * (4 * MINORBORDER + SLIDERWIDTH + COLORWHEELWIDTH) + MINORBORDER)
  399. #define LCWINHEIGHT    (3 * MINORBORDER + (TITLEBOXTOP + 4 * CHECKBOXHEIGHT + 5 * CHECKBOXSPACING) + (COLORWHEELWIDTH + TITLEBOXTOP + MAJORBORDER + MINORBORDER + TEXTBOXSEP + TEXTBOXHEIGHT))
  400.  
  401. /*Stuff for rectangle control panel window*/
  402. #define RCWINWIDTH    (2 * MINORBORDER + 2 * (4 * MINORBORDER + SLIDERWIDTH + COLORWHEELWIDTH) + MINORBORDER)
  403. #define RCWINHEIGHT    (3 * MINORBORDER + (TITLEBOXTOP + 4 * CHECKBOXHEIGHT + 5 * CHECKBOXSPACING) + (COLORWHEELWIDTH + TITLEBOXTOP + MAJORBORDER + 2 * MINORBORDER + TEXTBOXSEP + TEXTBOXHEIGHT + CHECKBOXHEIGHT))
  404.  
  405. /*Stuff for deformation*/
  406. #define DEFORMEDITWIDTH    80        /*Width of an edit box for deformation*/
  407.  
  408. /*Stuff for size*/
  409. #define SIZEEDITWIDTH    80        /*Width of an edit box for deformation*/
  410.  
  411. #define UIINFOALERT    UIPMAGENTA    /* information alert color */
  412. #define UICAUTIONALERT    UIPMAGENTA    /* caution alert color */
  413. #define UIERRORALERT    UIYELLOW    /* error alert color */
  414. #define UISEVEREALERT    UIRED        /* severe error alert color */
  415. #define UIPGMERRALERT    UIRED        /* program error alert color */
  416.  
  417. #define LILBTNSIZ    24
  418.  
  419. #define BTNMARGIN    10    /* edge of button to label */
  420.  
  421. #define TRK_WID 10    /* width of slider track */
  422. #define CTL_WID 12    /* width of slider control */
  423.  
  424. /* defaults for scale parameters */
  425. #if 0
  426. #define    SCALEFONT    "Helvetica"
  427. #else
  428. #define SCALEFONT    UISMALLFONT
  429. #endif
  430. #define SCALEFONTSIZE 10    /* font size for slider scale */
  431. #define    SCALETEXTCOLOR    UIBLACK
  432. #define    SCALELINECOLOR    UIBLACK
  433. #define    SCALELINEWIDTH    1
  434. #define    SCALEFORMAT    "%g"
  435. #define    HSCALEINSET    20
  436. #define    VSCALEINSET    2*EDGE
  437. #define HSTEPPIXELS    50    /* min pixels per step in horizontal scale */
  438. #define VSTEPPIXELS    30    /* min pixels per step in vertical scale */
  439. #define BIGTIC        12
  440. #define LILTIC        6
  441.  
  442. #define BIGTICK 10    /* tick lengths for slider scale */
  443. #define LILTICK 6
  444.  
  445. #define PLAIN        0
  446. #define TEXTBOXCOLOR    UIPINK
  447. #define TABWID    4    /* number of 'chars' per tab stop */
  448.  
  449. #define DUPOFFSET    16        /*X and Y pixel offset for duplication*/
  450.  
  451. /*Track control information*/
  452. #define TC_GAP        4        /*Gap between parts of track ctl*/
  453. #define TC_CELLHEIGHT    20        /*Height of one cell*/
  454. #define TC_BORDER    5        /*Border between diff. parts*/
  455. #define TC_MAJORSTEP    50        /*Number of pixels in major step*/
  456. #define TC_MINORSTEP    8        /*Number of pixels in minor step*/
  457. #define TC_CURHEIGHT    25        /*Height of current time track*/
  458. #define TC_TIMEHEIGHT    (TC_CURHEIGHT + TC_GAP)
  459. #define TC_LEFTLABEL    50        /*Width of labels on left*/
  460. #define TC_LABELUP    7        /*Offset for time label*/
  461. #define TC_TIMEBOFF    8        /*Offset for bottom of time*/
  462. #define TC_MARGIN    (0.2)        /*Margin around track control*/
  463. #define TC_TPP        (0.003)        /*Default time per pixel*/
  464. #define TC_ARROWSIZE    10        /*Size of arrow in track control*/
  465. #define TC_ARROWGAP    8        /*Gap between arrows in track control*/
  466. #define TC_VLINEWIDTH    2        /*Width of vline*/
  467. #define TC_VLINEHEIGHT    12        /*Height of vline*/
  468. #define TC_DBWIDTH    29        /*Width of density button*/
  469. #define TC_STMARKHHEIGHT 8        /*Half height of a subtrack marker*/
  470. #define TC_STMARKHWIDTH    4        /*Half width of a subtrack marker*/
  471. #define TC_STMARKEDGE    2        /*Edge of a marker*/
  472. #define TC_STMARKCOLOR    UIBLUE        /*Color of a time sample*/
  473. #define TC_TEXTBUP    2        /*Shift text up this much*/
  474.  
  475. /*PostScript window stuff*/
  476. #define WINFRAMEWID 6
  477. #define WINTITLEHT  20
  478. #define WINTITLEFONT "Helvetica-BoldOblique"
  479.  
  480. /*Menu stuff*/
  481. #define MENUEDGE    3        /*Beveled edge around menu*/
  482. #define MENULBORDER    5        /*Left border around menu item*/
  483. #define MENURBORDER    5        /*Right border around menu item*/
  484. #define MENUTBORDER    5        /*Top border*/
  485. #define MENUBBORDER    7        /*Bottom border*/
  486. #define MENUFONTSIZE    12
  487.  
  488.